<?php
/**

 */
class AccountController extends App_Controller_Action
{
    public function init()
    {
        /* Initialize action controller here */
    	$this->_redirect("/");
    }

    public function indexAction()
    {
        $request = $this->getRequest();
       
  
        $form = new Form_Account();
        $this->view->form = $form;
        
        $user_id = $this->getUserId();
        $user_role = $this->getUserRole();     

        $model = Model_UserFactory::create($user_role);
        $user = $model->getUser($user_id);
        
        Zend_Debug::dump($user);

    }
    
    public function testAction()
    {
    	$dpt_id = 1500;
		$dpt_account_id = 6;
		$dpt_password = '1q2w3e';
				
    	$model = Model_ServiceFactory::create($dpt_id);
    	//Zend_Debug::dump($model);
    	
		$model_client = Model_UserFactory::create('client');
		$dpt_login = $model_client->dptLoginCheck($dpt_id, $dpt_account_id, $dpt_password);
				
        Zend_Debug::dump($dpt_login);
    	
    }

}